<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<spring:url value="/resources/styles/hungarian/card/cards.css" var="cardsCss" />
<link rel="stylesheet" href="${cardsCss}" />

<div>

	<table>
		<c:forEach var="card" items="${cards}" varStatus="status">
			<c:if test="${status.index % 8 == 0}">
				<c:if test="${status.index > 0}">
					</tr>
				</c:if>
				<tr>
			</c:if>
			<td>
				<div class="card ${fn:toLowerCase(card.suit)} ${fn:toLowerCase(card.type)}"></div>
			</td>
		</c:forEach>

		<tr>
			<td colspan="8">
				<div class="card facedown"></div>
			</td>
		</tr>
	</table>

</div>

